package com.lsp.microarticle.article.controller;

import com.lsp.microarticle.article.service.ArticleLikeService;
import com.lsp.microcommon.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/app/article/like")
public class ArticleLikeController {

    @Resource
    private ArticleLikeService articleLikeService;

    @GetMapping()
    public CommonResult like(Integer articleId){
        articleLikeService.like(articleId);
        return CommonResult.success();
    }

}
